package c.a.a;

import android.content.Context;
import com.airbnb.lottie.LottieAnimationView;
import java.util.concurrent.Callable;

/* compiled from: LottieAnimationView */
public class d implements Callable<r<f>> {
    public final /* synthetic */ int a;
    public final /* synthetic */ LottieAnimationView b;

    public d(LottieAnimationView lottieAnimationView, int i) {
        this.b = lottieAnimationView;
        this.a = i;
    }

    public Object call() throws Exception {
        LottieAnimationView lottieAnimationView = this.b;
        if (!lottieAnimationView.o) {
            return g.f(lottieAnimationView.getContext(), this.a, null);
        }
        Context context = lottieAnimationView.getContext();
        int i = this.a;
        return g.f(context, i, g.i(context, i));
    }
}
